import requests

# 使用 requests 下载 mp4
# 潮点视频：https://shipin520.com/shipin/
# ！！暂时不知道视频地址如何获取！！

# 下载潮点视频
url = 'https://video.shipin520.com/videos/55/19/77/b_CvRraQEUyYic1609551977_v1.mp4'

# 下载今日头条
# url = 'https://v6-web.toutiaovod.com/5aee913ecd8b905cb0254be4f9ae717d/66c43eca/video/tos/cn/tos-cn-ve-0026/oYDph1QAEHAFyEewFGTIjQf1uADfBCCI2gKNyD/?a=24&ch=0&cr=0&dr=0&er=0&lr=unwatermarked&net=5&cd=0%7C0%7C0%7C0&cv=1&br=834&bt=834&cs=0&ds=3&eid=21760&ft=hGkwBy6LRR0sTlC42Dv2Nc0iPMgzbL3r.XsU_4nrmf_2Nv7TGW&mime_type=video_mp4&qs=0&rc=OmVlOjozOWU7aGhoZjw8aEBpajdtcGs5cmd4dDMzNGQzM0AvNWEtLmIwNjAxYzY2YjVeYSNgampwMmRjLWRgLS1kLi9zcw%3D%3D&btag=80000e00008000&dy_q=1724133549&feature_id=1229c61d4e863560fb994c11be849377&l=20240820135909827223A39528EB3C903F'

headers = {
    'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36'
}

response = requests.get(url=url, headers=headers)
content = response.content
with open('今日头条.mp4', mode='wb') as fp:
    fp.write(content)
print('success...')
